#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    FILE *p = fopen("a3.txt", "r");

    while(1)
    {
        char buf[1024] = { 0 };
        fgets(buf, sizeof(buf), p);

        if (feof(p))
            break;

        char *s = strtok(buf, ",");
        char *name = strchr(s, '=');
        //printf("%s\n", s);
        printf("%s\n", &name[1]);

        s = strtok(NULL, ",");
        printf("%d\n", atoi(&s[7]));

    }
    fclose(p);
    return 0;
}

